import request from '@/utils/request'

// 角色列表
export function getRolesList(params) {
  return request({
    url: '/role/findAdminRoleList',
    method: 'get',
    params
  })
}

// 创建角色
export function addRole(params) {
  return request({
    url: '/role/insertAdminRole',
    method: 'post',
    params
  })
}

// 角色编辑
export function editRole(params) {
  return request({
    url: '/role/updateAdminRole',
    method: 'post',
    params
  })
}

// 删除角色
export function removeRole(params) {
  return request({
    url: '/role/deleteAdminRole',
    method: 'get',
    params
  })
}
